package me.eleme.anubis.openapi.config;

import java.util.HashSet;
import java.util.Set;

/**
 * @author liuzhiyong
 */
public class Constants {

    /**
     * Date默认时区
     **/
    public static final String DATE_TIMEZONE = "GMT+8";

    /**
     * TOP默认时间格式
     **/
    public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

    /**
     * UTF-8字符集
     **/
    public static final String CHARSET_UTF8 = "UTF-8";
    /**
     * 默认流式读取缓冲区大小
     **/
    public static final int READ_BUFFER_SIZE = 1024 * 4;
    /**
     * 默认媒体类型
     **/
    public static final String MIME_TYPE_DEFAULT = "application/octet-stream";

    /**
     * oauth 请求头部Key
     */
    public static final String HEAD_OAUTH_KEY = "Authorization";

    /**
     * 返回的错误码
     */
    public static final String ERROR_RESPONSE = "error_response";

    /**
     * Oauth Signature
     */
    public static final String TOKEN_SIGN = "oauth";


    /**
     * Oauth URL suffix
     */
    public static final String TOKEN_URL = "token";


    /**
     * Oauth URL suffix
     */
    public static final String REFRESH_TOKEN_URL = "refreshToken";

    /**
     * 允许的视频后缀列表
     */
    public static final Set<String> VIDEO_EXT_LIST = new HashSet<String>();


    public static final int UUID_MAX_LENGTH = 32;

    public static final String SUCCESS_CODE = "200";


    public static final String REAL_TIME_SETTLEMENT_MODE = "1";

    public static final String  ACCOUNT_PERIOD_SETTLEMENT_MODE = "2";




    static {
        VIDEO_EXT_LIST.add("MP4");
        VIDEO_EXT_LIST.add("MOV");
    }
}
